import requests


headers = {
    "referer": "https://wuhan.zu.fang.com/house/i3100/",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
}
while True:
    url = f"https://wuhan.zu.fang.com/house/i32/"
    response = requests.get(url, headers=headers)

    print(response.text)
    print(response)
    with open("房天下.html", "w", encoding="utf-8") as f:
        f.write(response.text)